<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>

<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft HTML Help Workshop 4.0">
<title>Creating a link to close a frameset</title>
<style>@import url(coUA.css);</style>
<link disabled rel="stylesheet" href="htmlhelp.css">
</head>

<body>

<h1>Creating a link to close a frameset</h1>

<P>Currently the HTML Help ActiveX Control <A HREF="ms-its:hhaxref.chm::/ocx_close.htm">Close</a> command does not work properly with Web pages that contain frames. Because of this, you will need to create a special link to close such pages. This link will close the main browser window and all of the frames it contains.</P>

<h4>To close a window that contains a frameset:</h4>

<ol>
<li>Open the HTML file in which you want to include the link.
<li>Position your cursor where you want the link to appear.
<li>Add the link using the following syntax:</p>

<p><code>&lt;A HREF=JavaScript:window.top.close()&gt;Close&lt;/A&gt;</code></p>

</ol>




</body>
</html>